package cn.zust.ly.ExExample.Ex02;

import java.math.BigDecimal;
import java.util.Scanner;

/**
 * Created by liy on 2016/11/14.
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        //static Double PI = 3.14159265358979323;
        while (true) {
            double a = sc.nextDouble();
            BigDecimal b = new BigDecimal(a);
            System.out.println(b.setScale(7, BigDecimal.ROUND_HALF_UP).doubleValue());
        }
    }


}
